<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>填开配载</title>
		<link rel="stylesheet" type="text/css" href="../css/reset.css" />
		<link rel="stylesheet" type="text/css" href="../css/deliverBillEdit.css" />
		<style type="text/css">
			.td:nth-child(2n){
				background: #f9f9f9;
			}
			/*tr:nth-child(2n){
				background: #f9f9f9;
			}*/
		</style>
	</head>

	<body>
		<div class="container-fluid-full">
			<div class="row-fluid content-search">
				<div class="span5 left tiankai">
					<span>填开配载</span>
				</div>
				<div class="span2 right fanhui">
					<a onclick="history.back()">返回 &gt;</a>
				</div>
				<div class="clear"></div>
			</div>
			<div class="xian"></div>
			<div class="danhao">
				<div class="span5 left">
					<span class="default num">预配单号：<span class="newId"></span></span>
				</div>
				<div class="span5 right">
					<label class="default delete num">制单人<input class="default delete numk" name="originator" value=""><i></i></label>
					<span class="default date num">2018年05月21日</span>
				</div>
				<div class="clear"></div>
			</div>
			<div class="title">
				<span>运单信息</span>
				<hr>
			</div>
			<div class="item">
				<div class="itemsou">
					<label class="default delete sousuo">关键字搜索<input class="default delete keyWord" placeholder="请输入"><i></i></label>
					<span class="default time" style="margin-left: 20px">制单时间</span>
					<input id="time1" type="text" class="default startTime checkDate" placeholder="yyyy-mm-dd" lay-key="1">
					<span class="default" style="margin-left: 10px">至</span>
					<input id="time2" type="text" class="default endTime checkDate" placeholder="yyyy-mm-dd" lay-key="2">
					<button class="default" onclick="getWayBill(1);return false;">筛选运单</button>
				</div>
				<div class="selectWayBill">
					<div class="selectWayBill-left span5">
						<div class="selectWayBill-left-top">
							<table class="table table-striped table-bordered bootstrap-datatable">
								<tbody class="wayBillList">
									<tr count="12" weight="12" volume="12">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM950000000753</td>
										<td></td>
										<td>请问</td>
										<td>纸箱</td>
									</tr>
									<tr count="4" weight="600" volume="7.94">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM640000000752</td>
										<td>10001916</td>
										<td>人脸识别机</td>
										<td>木架</td>
									</tr>
									<tr count="undefined" weight="undefined" volume="undefined">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM380000000751</td>
										<td>110120130</td>
										<td></td>
										<td>纸箱</td>
									</tr>
									<tr count="12" weight="2000" volume="12">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM810000000750</td>
										<td>112233</td>
										<td>驱蚊器</td>
										<td>纸箱</td>
									</tr>
									<tr count="12" weight="undefined" volume="undefined">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM170000000749</td>
										<td>112234</td>
										<td>和规范化</td>
										<td>纸箱</td>
									</tr>
									<tr count="1" weight="9" volume="27">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM560000000748</td>
										<td>Ms2134</td>
										<td>分分彩</td>
										<td>纸箱</td>
									</tr>
									<tr count="2" weight="undefined" volume="undefined">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM000000000747</td>
										<td></td>
										<td>大米</td>
										<td>纸箱</td>
									</tr>
									<tr count="2" weight="undefined" volume="undefined">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM390000000746</td>
										<td></td>
										<td>大米</td>
										<td>纸箱</td>
									</tr>
									<tr count="2" weight="undefined" volume="undefined">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM160000000745</td>
										<td></td>
										<td>大米</td>
										<td>纸箱</td>
									</tr>
									<tr count="100" weight="1000000" volume="11142">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM110000000743</td>
										<td></td>
										<td></td>
										<td>纸箱</td>
									</tr>
									<tr count="1" weight="19" volume="0.09">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM990000000540</td>
										<td>10846624110</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="1" weight="45" volume="0.44">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM850000000511</td>
										<td>10846791406</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="1" weight="17" volume="0.085">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM850000000503</td>
										<td>10846793591</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="1" weight="13" volume="0.065">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM980000000502</td>
										<td>10846793565</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="8" weight="100" volume="0.5">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM990000000496</td>
										<td>10697318225</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="1" weight="32" volume="0.16">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM980000000643</td>
										<td>10846804242</td>
										<td>爆米花机</td>
										<td>纸箱</td>
									</tr>
									<tr count="2" weight="33" volume="0.15">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM930000000637</td>
										<td>10767767021</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="4" weight="100" volume="0.5">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM980000000634</td>
										<td>10767767161</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="3" weight="50" volume="0.36">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM990000000629</td>
										<td>10767769762</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="2" weight="120" volume="0.62">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM930000000612</td>
										<td>10697318251</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="1" weight="45" volume="0.44">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM990000000598</td>
										<td>10846790835</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="1" weight="20" volume="0.1">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM930000000589</td>
										<td>10846624040</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="1" weight="19" volume="0.095">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM990000000584</td>
										<td>10846624062</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="1" weight="45" volume="0.44">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM890000000578</td>
										<td>10846790791</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
									<tr count="2" weight="37" volume="0.15">
										<td><input type="checkbox" class="singleCheck"></td>
										<td>HM980000000549</td>
										<td>10846624132</td>
										<td>配件</td>
										<td>纸箱</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="selectWayBill-left-bottom">
							<label><div class="checker"><span><input type="checkbox" class="allCheck"></span></div> 全选</label>
						</div>
					</div>
					<div class="selectWayBill-right span5">
						<table class="table table-striped table-bordered bootstrap-datatable">
							<tbody class="wayBillSelectedList">

							</tbody>
						</table>
					</div>
					<div class="selectWayBill-bottom span10">
						<button class="default addWayBill tianjia">添加配载</button>
						<span class="default df">已配载运单数：<span class="sumBill">0</span></span>
						<span class="default df">件数：<span class="sumCount">0</span></span>
						<span class="default df">重量：<span class="sumWeight">0.00</span> 吨</span>
						<span class="default df">体积：<span class="sumVolume">0.00</span> 方</span>
					</div>
				</div>
			</div>
			<div class="title">
				<span>车辆信息</span>
				<hr>
			</div>
			<div class="item">
				<label class="default delete">车主姓名<input class="default delete" placeholder="请输入" name="driverName" value=""><i></i></label>
				<label class="default delete">车牌<input class="default delete" placeholder="请输入" name="driverTruckno" value=""><i></i></label>
				<label class="default delete" style="margin-left: 20px">车型<input class="default delete" placeholder="请输入" name="driverCartype" value=""><i></i></label>
				<label class="default delete" style="margin-left: 20px">联系电话<input class="default delete checkInt" placeholder="请输入" name="driverPhone" value=""><i></i></label>
			</div>
			<div class="item" style="font-size: 14px;color: #666666;">
				<label class="default delete">身份证号<input class="default delete checkInt" placeholder="请输入" name="driverIdcardno" value=""><i></i></label>
				<label class="default">载重<input class="default checkDouble" placeholder="请输入" name="driverWeight" style="width: 75px" value=""><span style="margin: 0px 10px">吨</span></label>
				<label class="default" style="margin-left: 49px">载方<input class="default checkDouble" placeholder="请输入" name="driverVolume" style="width: 75px" value=""><span style="margin: 0px 10px">方</span></label>
			</div>
			<div class="title" style="padding-top: 20px;">
				<span>其他信息</span>
				<hr>
			</div>
			<div class="item">
				<span class="default">货物处理</span>
				<select class="default" name="handlingGoodsWay" style="width: 118px">
					<option value="送货">送货</option>
					<option value="外发">外发</option>
					<option value="入库">入库</option>
					<option value="三方物流">三方物流</option>
					<option value="百世">百世</option>
				</select>
				<label class="default delete" style="margin-left: 35px">GPS号<input class="default delete" placeholder="请输入" name="gpsNo" value=""><i></i></label>
				<label class="default delete" style="margin-left: 20px">电子锁<input class="default delete" placeholder="请输入" name="electronicLock" value=""><i></i></label>
				<label class="default delete" style="margin-left: 20px">尾门锁号<input class="default delete" placeholder="请输入" name="tailDoorLockno" value=""><i></i></label>
			</div>
			<div class="item">
				<label class="default delete">侧门锁号<input class="default delete" placeholder="请输入" name="sideDoorLockno" value=""><i></i></label>
				<label class="default">温度要求<input class="default temperatureRequirement1" placeholder="请输入"><span style="margin: 0px 10px">-</span><input class="default temperatureRequirement2" placeholder="请输入" style="margin-left: 0px"></label>
				<input type="hidden" name="temperatureRequirement" value="">
			</div>
			<div class="title" style="padding-top: 20px;">
				<span>地址信息</span>
				<hr>
			</div>
			<div class="item">
				<label class="default delete addressList connect">发货人<input class="default delete next selectAddress" name="linkman1" value=""><i></i>
                    <div class="addressList" type="1" style="left: 52px"><ul></ul></div>
                </label>
				<label class="default delete">联系电话<input class="default delete next checkInt" name="mobile1" value=""><i></i></label>
			</div>
			<div class="item">
				<span class="default">始发站</span>
				<select class="default provid" name="provid1">
					<option value="-1">省</option>
					<option value="110000" regionid="2">北京市</option>
					<option value="120000" regionid="3">天津市</option>
					<option value="130000" regionid="4">河北省</option>
					<option value="140000" regionid="5">山西省</option>
					<option value="150000" regionid="6">内蒙古</option>
					<option value="210000" regionid="7">辽宁省</option>
					<option value="220000" regionid="8">吉林省</option>
					<option value="230000" regionid="9">黑龙江省</option>
					<option value="310000" regionid="10">上海市</option>
					<option value="320000" regionid="11">江苏省</option>
					<option value="330000" regionid="12">浙江省</option>
					<option value="340000" regionid="13">安徽省</option>
					<option value="350000" regionid="14">福建省</option>
					<option value="360000" regionid="15">江西省</option>
					<option value="370000" regionid="16">山东省</option>
					<option value="410000" regionid="17">河南省</option>
					<option value="420000" regionid="18">湖北省</option>
					<option value="430000" regionid="19">湖南省</option>
					<option value="440000" regionid="20">广东省</option>
					<option value="450000" regionid="21">广西</option>
					<option value="460000" regionid="22">海南省</option>
					<option value="500000" regionid="23">重庆市</option>
					<option value="510000" regionid="24">四川省</option>
					<option value="520000" regionid="25">贵州省</option>
					<option value="530000" regionid="26">云南省</option>
					<option value="540000" regionid="27">西藏</option>
					<option value="610000" regionid="28">陕西省</option>
					<option value="620000" regionid="29">甘肃省</option>
					<option value="630000" regionid="30">青海省</option>
					<option value="640000" regionid="31">宁夏</option>
					<option value="650000" regionid="32">新疆</option>
				</select>
				<select class="default cityid" name="cityid1">
					<option value="-1">市</option>
				</select>
				<select class="default" name="districtid1">
					<option value="-1">区</option>
				</select>
				<span class="delete"><input class="default delete next" placeholder="详细地址" name="address1" value="" style="width: 300px;"><i></i></span>
			</div>
			<div class="item">
				<label class="default delete addressList connect">收货人<input class="default delete next selectAddress" name="linkman2" value=""><i></i>
                    <div class="addressList" type="2" style="left: 52px"><ul></ul></div>
                </label>
				<label class="default delete">联系电话<input class="default delete next checkInt" name="mobile2" value=""><i></i></label>
			</div>
			<div class="item" style="padding-bottom: 20px;">
				<span class="default">目的站</span>
				<select class="default provid" name="provid2">
					<option value="-1">省</option>
					<option value="110000" regionid="2">北京市</option>
					<option value="120000" regionid="3">天津市</option>
					<option value="130000" regionid="4">河北省</option>
					<option value="140000" regionid="5">山西省</option>
					<option value="150000" regionid="6">内蒙古</option>
					<option value="210000" regionid="7">辽宁省</option>
					<option value="220000" regionid="8">吉林省</option>
					<option value="230000" regionid="9">黑龙江省</option>
					<option value="310000" regionid="10">上海市</option>
					<option value="320000" regionid="11">江苏省</option>
					<option value="330000" regionid="12">浙江省</option>
					<option value="340000" regionid="13">安徽省</option>
					<option value="350000" regionid="14">福建省</option>
					<option value="360000" regionid="15">江西省</option>
					<option value="370000" regionid="16">山东省</option>
					<option value="410000" regionid="17">河南省</option>
					<option value="420000" regionid="18">湖北省</option>
					<option value="430000" regionid="19">湖南省</option>
					<option value="440000" regionid="20">广东省</option>
					<option value="450000" regionid="21">广西</option>
					<option value="460000" regionid="22">海南省</option>
					<option value="500000" regionid="23">重庆市</option>
					<option value="510000" regionid="24">四川省</option>
					<option value="520000" regionid="25">贵州省</option>
					<option value="530000" regionid="26">云南省</option>
					<option value="540000" regionid="27">西藏</option>
					<option value="610000" regionid="28">陕西省</option>
					<option value="620000" regionid="29">甘肃省</option>
					<option value="630000" regionid="30">青海省</option>
					<option value="640000" regionid="31">宁夏</option>
					<option value="650000" regionid="32">新疆</option>
				</select>
				<select class="default cityid" name="cityid2">
					<option value="-1">市</option>
				</select>
				<select class="default" name="districtid2">
					<option value="-1">区</option>
				</select>
				<span class="delete"><input class="default delete next" placeholder="详细地址" name="address2" value="" style="width: 300px;"><i></i></span>
			</div>
			<div class="xian"></div>
			<div class="bottom">
                <div>
                    <input type="button" class="url" url="/deliverBill/deliverBill/deliverBillEdit?deliverBillId=" value="重置">
                    <input type="button" value="保存" onclick="save()">
                </div>
            </div>
		</div>
		<script src="../js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		$(function() {
            $(".wayBillList").children("tr").click(function() {
//          	$(".tianjia").children(e).click(function(){
	                var clone = $(this).clone();
	                clone.append(`<tr count="1" weight="19" volume="0.095">
	                		<td class="td"><img src="../img/icon_del.png"/></td>
										</tr>`)
	                    .find("tr").click(function () {
	                    $(this).parent().remove("tr");
	                });
	                $(".selectWayBill-right table").append(clone);
//          	});
            });
            $(".td").click(function(){
            	tr.style.display="none"
            })
        });
		</script>
	</body>

</html>